package cn.yj.service.vo;

import java.io.Serializable;
import java.util.StringJoiner;

/**
 * @author 永健
 * @since 2022-01-18 14:17
 */
public class YJRpc implements Serializable {
    private String name;
    private String sex;
    private int age;
    private String remark;
    private Integer port;


    @Override
    public String toString() {
        return new StringJoiner(", ", YJRpc.class.getSimpleName() + "[", "]").add("name='" + name + "'").add("sex='" + sex + "'").add("age=" + age).add("remark='" + remark + "'").add("port='" + port + "'").toString();
    }

    public static YJRpc newThis() {
        YJRpc yjRpc = new YJRpc();
        yjRpc.setName("永健");
        yjRpc.setAge(23);
        yjRpc.setSex("男");
        yjRpc.setRemark("大家好我是中国第一帅程序员 😊");
        return yjRpc;
    }

    public Integer getPort() {
        return port;
    }

    public YJRpc setPort(Integer port) {
        this.port = port;
        return this;
    }

    public String getName() {
        return name;
    }

    public String getRemark() {
        return remark;
    }

    public YJRpc setRemark(String remark) {
        this.remark = remark;
        return this;
    }

    public YJRpc setName(String name) {
        this.name = name;
        return this;
    }

    public String getSex() {
        return sex;
    }

    public YJRpc setSex(String sex) {
        this.sex = sex;
        return this;
    }

    public int getAge() {
        return age;
    }

    public YJRpc setAge(int age) {
        this.age = age;
        return this;
    }
}
